package com.atguigu.gmall.weball.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @author lfy
 * @Description
 * @create 2023-07-29 10:20
 */
@Controller
public class OrderController {

    @ResponseBody
    @GetMapping("/order.html")
    public String order(HttpServletRequest request,@RequestHeader("userid") Long userId){

//        String userId = request.getHeader("UserId");
        return userId.toString();
    }
}
